body { margin: 0; padding: 0; background: #f5f6fa; display: flex; min-height: 100vh; font-family: Arial, sans-serif; }
.main-wrapper { display: flex; width: 100%; }
.sidebar {
    width: 240px;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    padding: 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.07);
    min-height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.sidebar h3 {
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 32px 0 16px 0;
    letter-spacing: 2px;
    font-size: 1.3rem;
    margin-bottom: 0;
}
.sidebar ul {
    list-style: none;
    padding: 0 0 32px 0;
    margin: 0;
    flex: 1;
}
.sidebar ul li {
    margin: 0;
}
.sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 14px 32px;
    color: #e3e6f0;
    text-decoration: none;
    font-size: 1.08rem;
    border-left: 4px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border-radius: 0 24px 24px 0;
    margin-bottom: 2px;
}
.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-left: 4px solid #f6c23e;
    font-weight: bold;
}
.main-content { flex-grow: 1; padding: 20px; background-color: #f5f6fa; }
.info-card { background-color: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin-bottom: 20px; }

/* Form styles */
#templateForm {
    margin-bottom: 20px; /* Equivalent to mb-4 */
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Add gap between form groups */
    margin-bottom: 15px; /* Equivalent to mt-3 on the second row */
}

.form-row:last-child {
    margin-bottom: 0; /* Remove bottom margin for the last row */
}

.form-group {
    flex: 1; /* Allow flex items to grow and shrink */
}

.form-group-full {
    flex: 0 0 100%; /* Take full width */
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in element's total width */
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px; /* Add some space above the table */
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.data-table thead th {
    background-color: #e9ecef;
    font-weight: bold;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Zebra striping */
}

.data-table tbody tr:hover {
    background-color: #e2e6ea; /* Hover effect */
}

/* Button styles */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    color: #fff;
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-info {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    color: #fff;
    background-color: #138496;
    border-color: #117a8b;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Spacing for action buttons */
.data-table td .btn {
    margin-right: 5px; /* Add some space between buttons */
}

.data-table td .btn:last-child {
    margin-right: 0;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Backdrop */
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
    pointer-events: none;
    max-width: 500px; /* Default max-width */
    margin: 1.75rem auto; /* Center the modal */
}

.modal-dialog-lg {
    max-width: 800px; /* Large modal */
}

.modal.show .modal-dialog {
    pointer-events: auto;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.btn-close {
    padding: 0.5rem 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    background-color: transparent;
    border: 0;
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 0.75;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 15px;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 15px;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px);
}

.modal-footer > * {
    margin-left: 0.25rem; /* Add space between buttons in footer */
}

/* Style for the pre and code tags in modal body for JSON */
.modal-body pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    font-size: 0.875em;
    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    white-space: pre-wrap; /* Wrap long lines */
    word-wrap: break-word; /* Break words to prevent overflow */
}

.modal-body code {
    font-size: 87.5%;
    color: #e83e8c;
    word-break: break-word;
} 